package modele;

import java.util.Collection;
import java.util.HashSet;

/**
 *
 * @author sio
 */
public class Dep implements Comparable <Dep>{
    private String num;
    private Collection <Med> lesMeds = new HashSet <Med> ();
    
    public Dep(String num, Collection <Med> m){
        this.num = num;
        lesMeds = m;
    }
    
    public String getNum(){
        return num;
    }
    public Collection <Med> getLesMeds(){
        return lesMeds;
    }
    public int compareTo(Dep d){
        return num.compareTo(d.num);
    }
}